﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace diploma.test.core
{
    public class YesNoQuestion : Question
    {
        protected bool answer = false;
        public YesNoQuestion(string _question, bool _answer)
            : base(_question)
        {
            answer = _answer;
        }
        public override QuestionTypes Type
        {
            get
            {
                return QuestionTypes.YesNo;
            }
        }

        public bool RightOption
        {
            get
            {
                return answer;
            }
        }
    }
}
